﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
//using Oracle.ManagedDataAccess.Client;
using System.IO;
using Mangox.Common;
using Microsoft.Win32;
using System.Security.Cryptography;
using Newtonsoft.Json;
using Mangox.BLL.Mangox;
using Wen.Helpers.Common;

namespace ConsoleTest
{

    class Program
    {
        static void Main()
        {

            XmlConfigHelper.SetConfig("abc","123");
            var abc = XmlConfigHelper.GetConfig("abc");
            abc = XmlConfigHelper.GetConfig("bcd");

            //加密
            var password = "123456"; //E8DF6626C18BFC74F90EBA4DCC7996E1
            password = MgxCommBLL.GetUserPwd(password);



            //验证token加密解密
            //FnRg6cf8/NvjRWVNNol4rFw2zXk2MUZBFZK0xxBuIJE=
            var token = MgxCommBLL.CreateToken("2068921");
            var b = MgxCommBLL.DecryptToken(token);





            //{"ret":0,"res_info":"ok","hash":"f32aba4171bb641dd23d8d85d28263d7b49c4c2eb0bbcc0465ea687fcf576e31","amount":0.0}


            var className = "1111";
            var transferUrl = "6666";
            var result = "8888";
            var test = className + $"Transfer url-{transferUrl}，result-{result}";

            
            //string json = "{\"Id\":1,\"Name\":\"刘备\",\"Age\":\"22\"}";
        }



    }

}
